<Code Lib>
2025.3 Method
Changes 0
M

AreaReinforcement.Create(Document, Element, IList<Curve>, XYZ, ElementId, ElementId, ElementId)

Description:
Creates a new AreaReinforcement object from an array of curves. This method replaces the NewAreaReinforcement method, which has been deprecated.
Overloads (2):
Create(Document,Element,IList[Curve],XYZ,ElementId,ElementId,ElementId)

public static AreaReinforcement Create(
	Document document,
	Element hostElement,
	IList<Curve> curveArray,
	XYZ majorDirection,
	ElementId areaReinforcementTypeId,
	ElementId rebarBarTypeId,
	ElementId rebarHookTypeId
)

  • document
    The document.
  • hostElement
    The element that will host the AreaReinforcement. The host can be a Structural Floor, Structural Wall, Structural Slab, or a Part created from a structural layer belonging to one of those element types.
  • IList<Curve>
    curveArray
    An array of curves that will define the outline of the AreaReinforcement.
  • majorDirection
    A vector to define the major direction of the AreaReinforcement.
  • areaReinforcementTypeId
    The id of the AreaReinforcementType.
  • rebarBarTypeId
    The id of the RebarBarType.
  • rebarHookTypeId
    The id of the RebarHookType. If this parameter is InvalidElementId, it means to create a rebar with no hooks.
Return Value AreaReinforcement The newly created AreaReinforcement.

  • The input curveArray is empty. -or- The input curveArray contains at least one helical curve and is not supported for this operation. -or- The element hostElement was not found in the given document. -or- the host Element is not a valid host for Area Reinforcement, Path Reinforcement, Fabric Area or Fabric Sheet. -or- Curves in curveArray are not closed and continuous. -or- areaReinforcementTypeId should refer to an AreaReinforcementType element. -or- rebarBarTypeId should refer to an RebarBarType element. -or- rebarHookTypeId should be invalid or refer to an RebarHookType element.
  • A non-optional argument was null
  • majorDirection has zero length.
  • This method may not be called during dynamic update.

Loading…